<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/common/include/title.jsp"%>
  <script type="text/javascript">
  function cheacker(ele,status,msg){
	  $(ele).parent().removeClass("has-success has-error");
	  $(ele).next("span").text("");
	 if(status=="success"){
		 $(ele).parent().addClass("has-success");
		 $(ele).next("span").text(msg);
	 }else if(status=="error"){
		 $(ele).parent().addClass("has-error");
		 $(ele).next("span").text(msg);
	 }	 	 
  }
  function checkerFrom(){
	  var email = $("#uid").val();
	  var regEmail = /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/;
	  if(!regEmail.test(email)){
		  cheacker("#uid", "error", "*邮箱格式不正确");
		  return false;
	  }else{
		  cheacker("#uid", "success", " "); 
		  
	  }
  }
  
  </script>
<title>Insert title here</title>
</head>
<body>
	<div id="clouds" class="stage"></div>
	<div class="loginmain"></div>


    <div class="row-fluid">
        <h1>艺谷（深圳）后台管理系统</h1>
        <p>
            <label>帐&nbsp;&nbsp;&nbsp;号：<input type="text" id="uid" /></label>
        </p>
        <p>
            <label>密&nbsp;&nbsp;&nbsp;码：<input type="password" id="pwd" /></label>
        </p>
        <p class="pcode">
            <label>效验码：<input type="text" id="code" maxlength="5" class="code" value="e5g88" /><img src="img/code.gif" alt="" class="imgcode" /><a href="#">下一张</a></label>
        </p>
        <p class="tip">&nbsp;</p>
        <hr />
        <input type="button" value=" 登 录 " class="btn btn-primary btn-large login" />
        &nbsp;&nbsp;&nbsp;<input type="button" value=" 取 消 " class="btn btn-large" />
        <a href="${rootPath}/main.jsp "></a>
    </div>
	<div class="row-fluid">
		<h1>汽车租赁后台管理系统</h1>
		<h3 style="color: red;">${info}</h3>
		<form action="${rootPath }/loginSubmit.html" method="get"  >
		<p>
			<label>邮&nbsp;&nbsp;&nbsp;箱：<input type="text" id="uid" name="email" onblur="checkerFrom()"/> <span  class="help-block"></span></label>
		</p>
		<p>
			<label>密&nbsp;&nbsp;&nbsp;码：<input type="password" id="pwd" name="password"/> <span  class="help-block"></span></label>
		</p>
		<p class="pcode">
			<label>效验码：<input type="text" id="code" maxlength="5"
				class="code" value="e5g88" /><img src="img/code.gif" alt=""
				class="imgcode" /><a href="#">下一张</a></label>
		</p>
		<p class="tip">&nbsp;</p>
		<hr />
		<input type="submit" value=" 登 录 "
			class="btn btn-primary btn-large login" /> &nbsp;&nbsp;&nbsp;<input
			type="button" value=" 取 消 " class="btn btn-large" /> 
			
	</div>
<<<<<<< HEAD
</form>

=======
</form>
>>>>>>> branch 'master' of https://git.oschina.net/MengXueFei/car-rental.git
</body>
</html>
